<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>机房列表</title>
	</head>
	
	<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top" background="images/mail_leftbg.gif">
					<img src="images/left-top-right.gif" width="17" height="29" />
				</td>
				<td valign="top" background="images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									机房列表
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top" background="images/mail_rightbg.gif">
					<img src="images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
				
					<table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td colspan="2" valign="top">
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td valign="top">
								&nbsp;
							</td>
						</tr>
						
						<tr>
							<td colspan="2" valign="top">
								<center><span class="left_bt">机房信息</span></center>
								<br>
								<br>
								

<form  action="motor/searchMotor.action" method="post">
查询条件：
【管理员】<select name="uid" style="border:0;background:transparent; font-size:18px;width:80px;height:20px;" >
		  <option value=""></option>
		  <s:iterator value="emplist" var="list">
	        <option value="${list.uid }">${list.uname}</option>
          </s:iterator>
         </select>
【所属部门】<select name="deptid" style="border:0;background:transparent; font-size:18px;width:80px;height:20px;" >
		  <option value="" ></option>
		  <s:iterator value="deptlist" var="list">
		  	<option value="${list.deptid }" >${list.deptname}</option>
		  </s:iterator>
		</select>
【机房名称】<input type="text" name="deptname" />
【所在地址】<input type="text" name="address" />
<input type="submit" value="查询"/>
<br /><br />

<center>
	<table  width="99%" cellspacing="1" cellpadding="3" border="0" bgcolor="#6298e1">
	<tbody>
		<tr>
		    <td  width="40" nowrap="" height="25" background="Admin_Poli.files/th_bg.gif" align="center">
				机房编号
			</td>
			<td width="60" nowrap="" background="Admin_Poli.files/th_bg.gif" align="center">
				机房名称
			</td>
			<td width="60" nowrap="" background="Admin_Poli.files/th_bg.gif" align="center">
				机房地址
			</td>
			
			<td  width="60" nowrap="" background="Admin_Poli.files/th_bg.gif" align="center">
				所属部门
			</td>
			<td width="60" nowrap="" background="Admin_Poli.files/th_bg.gif" align="center">
			       负责人
		    </td>
			<td width="60" nowrap="" background="Admin_Poli.files/th_bg.gif" align="center">
			        备注
			</td>
		</tr>
		<s:iterator var="list" value="listmotor" >
		<tr bgcolor="#ebf2f9" onmouseout="this.style.backgroundColor = ''" style="" onmouseover="this.style.backgroundColor = '#FFFFFF'">
			<td nowrap="" height="24" align="center">
				${list.motid}
			</td>
			<td nowrap="" height="24" align="center">
				${list.motname }
			</td>
			<td nowrap="" height="24" align="center">
				${list.motaddr }
			</td>
			<td nowrap="" height="24" align="center">
				${list.UDept.deptname }
			</td>
			<td nowrap="" height="24" align="center">
				${list.UUser.uname}
			</td >
			<td nowrap="" height="24" align="center">
			 ${list.motnote }</td>
			</tr>
			
			</s:iterator>
			</tbody>
		</table>
		<br/>
		</form>

		<br />
		<br />
		<div style="margin-left:180px">
		<table width="99%" align="center">
			<tr>
				<td class="left_txt">
								<img src="images/icon-mail2.gif" width="16" height="11">
								&nbsp;&nbsp;&nbsp;&nbsp;邮箱：liuyongwade@gmail.com
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								组员：刘勇&nbsp;&nbsp;程署&nbsp;&nbsp;陈皓&nbsp;&nbsp;席晓明&nbsp;&nbsp;刘广云
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版权所有 侵权必究
							</td>
						</tr>
						</table>
						</div>
   </center>
		
</span>			         
	</body>
</html>
